package com.gexiaobao.pigeon.ui.fragment.match

import android.os.Bundle
import com.gexiaobao.pigeon.app.base.BaseFragment
import com.gexiaobao.pigeon.databinding.FragmentGameResultBinding
import com.gexiaobao.pigeon.ui.race.RaceViewModel
import me.hgj.jetpackmvvm.ext.nav
import me.hgj.jetpackmvvm.ext.util.setOnclickNoRepeat

/**
 * @Author      : hxw
 * @Date        : 2023/6/1 11:11
 * @Describe    : 比赛结果
 */
class FragmentGameResult : BaseFragment<RaceViewModel, FragmentGameResultBinding>() {

    override fun initView(savedInstanceState: Bundle?) {
        val title = arguments?.getString("title")
//        title?.let {
//            toolbar.initClose(it) {
//                nav().navigateUp()
//            }
//        }
    }

    override fun onBindViewClick() {
        super.onBindViewClick()
        setOnclickNoRepeat(mDatabind.ivMatchResultBack, mDatabind.tvMatchResultTitle) {
            when (it) {
                mDatabind.ivMatchResultBack, mDatabind.tvMatchResultTitle -> {
                    nav().navigateUp()
                }
            }
        }
    }
}